<template>
	<view class="margin-15">
		<view class="grid margin-t-15 border-radius-10 color-838A99">
		      <view class="grid-item" @click="to1">
		        <image src="/static/image/upload-01.png" class="grid-icon" mode="widthFix"></image>
		        <text class="text">基础资料</text>
		      </view>
			  <view class="grid-item" @click="to2">
			    <image src="/static/image/upload-02.png" class="grid-icon" mode="widthFix"></image>
			    <text class="text">我的贷款</text>
			  </view>
			  <view class="grid-item" @click="to3">
			    <image src="/static/image/upload-03.png" class="grid-icon" mode="widthFix"></image>
			    <text class="text">企业信用管理</text>
			  </view>
			  <view class="grid-item" @click="to4">
			    <image src="/static/image/upload-04.png" class="grid-icon" mode="widthFix"></image>
			    <text class="text">个人信用管理</text>
			  </view>
		</view>
	</view>
</template>

<script>
	export default {
		onLoad(options) {
			this.getServerData();
		},
		data() {
			return {
				
			}
		},
		onReady() {
			
		},
		methods: {
			getServerData() {
				this.$request().then(res => {
					// 验证登入
				})
			},
			to1() {
			    
			    uni.navigateTo({
			        url: '/pages/user/basic'
			    });
			},
			to2() {
			    
			    uni.navigateTo({
			        url: '/pages/product/list'
			    });
			},
			to3() {
			    
			    uni.navigateTo({
			        url: '/pages/index/my_company'
			    });
			},
			to4() {
			    
			    uni.navigateTo({
			        url: '/pages/user/personal'
			    });
			}
		}
	}
</script>

<style>
	.grid {
		 display: flex;
		 flex-wrap: wrap;
		 justify-content: space-evenly;
		 padding-top: 20px;
	}
	.grid-item {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 45%;
		height: 150px;
		background-color: #fff;
		box-shadow: 0 1px 4px rgb(0 0 0 / 10%);
		border-radius:5px;
		margin: 5px 0;
	}
	.grid-icon {
	  width: 100rpx;
	  height:100rpx;
	  margin-bottom: 8rpx;
	}
</style>
